package com.wanxs.mall.product.service;

import com.wanxs.mall.common.service.CrudService;
import com.wanxs.mall.product.dto.AttrAttrgroupRelationDTO;
import com.wanxs.mall.product.entity.AttrAttrgroupRelationEntity;
import com.wanxs.mall.product.vo.AttrGroupRelationVO;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author wanxs 130001934@qq.com
 * @since 1.0.0 2023-09-01
 */
public interface AttrAttrgroupRelationService extends CrudService<AttrAttrgroupRelationEntity, AttrAttrgroupRelationDTO> {

    List<AttrAttrgroupRelationEntity> queryAttryGroupRelation(Long attrgroupId);

    AttrAttrgroupRelationEntity selectOne(Long attrId);

    void deleteByAttrId(Long id);

    void removeBatchRelation(List<AttrAttrgroupRelationEntity>  entityList);

    void saveBatch(List<AttrGroupRelationVO> attrGroupRelationVOS);

}